﻿using System;
using System.Collections.Generic;
using System.Linq;

using Sumen.Model.Model;

namespace Sumen.Business.Presenter.Category
{
    public class StockPresenter
    {
      
        public ICollection<stock> GetAll()
        {
            using (sumenEntities obj = new sumenEntities())
            {
                if (ClsPublic.SYSTEM_DISPLAY_ACTIVED == "1")
                    return obj.stocks.ToList();
                else
                    return obj.stocks.Where(p => p.stock_Actived == 1).ToList();
            }
        }



    }
}
